#include "Teacher.h"


Teacher::Teacher()
{
}

Teacher::Teacher(int id, string name, string username, string password)
	:User(id,name,username,password)
{
}


Teacher::~Teacher()
{
}

map<int, Course*>& Teacher::getCourses()
{
	return courses;
}

void Teacher::addCourse(Course* course)
{
	courses[course->getId()] = course;
}

void Teacher::deleteCourseById(int courseId)
{
	map<int,Course*>::iterator it = courses.find(courseId);
	if (it != courses.end())
		courses.erase(it);
}
